
package ro.qi.framework.sys.security.entities;

import ro.qi.framework.sys.entities.Entity;

public class SecurityAccountMandatoryACLCollection extends Entity {

	public SecurityAccountMandatoryACLCollection(int accountId) {
		setAccountId(accountId);
		select();
	}

	public void setAccountId(int value) {
		setValue("accountId", value);
	}

	public int getAccountId() {
		return getIntValue("accountId");
	}

	public int getCollectionSize() {
		return getCollectionSize("accesses");
	}

	public int getAccessId(int index) {
		return getCollectionIntValue("accesses", "accessId", index);
	}

	public int getApplicationId(int index) {
		return getCollectionIntValue("accesses", "applicationId", index);
	}

	public int getAccessMask(int index) {
		return getCollectionIntValue("accesses", "accessMask", index);
	}

}
